package easy

func MaxCount(m int, n int, ops [][]int) int {
	mina := m
	minb := n
	for _, op := range ops {
		mina = min(mina, op[0])
		minb = min(minb, op[1])
	}
	return mina * minb
}
